#include <stdio.h>
main()
{	    		 	   	 
    long int n=1;
    int i;
    for(i=1;i<=10;i++)
    {	    		 	   	 
        n=n*i;
        printf(i%5==0?"  %2d!=%ld\n":"  %2d!=%ld",i,n);
    }
}